package com.knowledge.graph.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 视频和课程的表
 * @author jiwenlong
 * @date 2023/11/8 20:34
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("video_and_course")
public class VideoAndCourse {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long courseId;

    private Integer videoId;

    public VideoAndCourse(Long courseId,Integer videoId) {
        this.courseId = courseId;
        this.videoId = videoId;
    }

}
